package com.yanqu.road.entity.log;

import java.util.Date;

/**
 * 日志收集用
 */
public class LogGoodsEntity {

    /**
     * 道具
     */
    private int goodsId;
    /**
     * 玩家
     */
    private long userId;
    /**
     * 时间
     */
    private Date time;
    /**
     * 保留
     */
    private boolean isGet;
    /**
     * 获得数量
     */
    private long num;
    /**
     * 途径
     */
    private int way;
    /**
     * vip
     */
    private long vipExp;

    public LogGoodsEntity() {

    }

    public LogGoodsEntity(int goodsId, long userId, Date time, boolean isGet, long num, int way, long vipExp) {
        this.goodsId = goodsId;
        this.userId = userId;
        this.time = time;
        this.isGet = isGet;
        this.num = num;
        this.way = way;
        this.vipExp = vipExp;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public boolean isGet() {
        return isGet;
    }

    public void setGet(boolean get) {
        isGet = get;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public int getWay() {
        return way;
    }

    public void setWay(int way) {
        this.way = way;
    }

    public long getVipExp() {
        return vipExp;
    }

    public void setVipExp(long vipExp) {
        this.vipExp = vipExp;
    }

    public boolean getType() {
        return isGet;
    }

    public void setType(boolean get) {
        if (this.isGet != get) {
            this.isGet = get;
        }
    }
}
